﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace _5.TicTacToe
{
    public partial class TicTacToeForm : System.Web.UI.Page
    {
        private static int clicks = 0;
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button_Click(object sender, EventArgs e)
        {
            clicks++;
            if (clicks % 2 == 0)
            {
                ((ImageButton)sender).ImageUrl = "O.jpg";
            }
            else 
            {
                ((ImageButton)sender).ImageUrl = "X.jpg";
            }



        }


    }
}